package pers.course.exam;

import java.util.Arrays;
import java.util.Scanner;

public class CorrectSolution {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String a = in.nextLine();
        String b = in.nextLine();
        char[] result = a.toCharArray();
        Arrays.sort(result);
        int flag = 0;
        for (char c : result) {
            if (c == '0') {
                flag++;
            }
        }
        if (flag < result.length) {
            char temp = result[0];
            result[0] = result[flag];
            result[flag] = temp;
        }
        StringBuilder c = new StringBuilder();
        for (char ch : result) {
            c.append(ch);
        }
        String d = c.toString();
        if (d.equals(b)) {
            System.out.println("OK");
        } else {
            System.out.println("WRONG_ANSWER");
        }
    }
}
